//- Author: wang885298.
//- Date   : 2016/12/21.
//- File   : company-common.
@import "style";

.company-page-common {
  margin-top: 4rem;
}

//头部下拉菜单
.company-menu {
  position: absolute;
  top: 4rem;
  left: 0;
  z-index: 999;
  width: 100%;
  background-color: @menuBgColor;
  overflow: auto;
  max-height: 490px;

  &-onelevel {
    border-bottom: 1px solid @bBottomColor;
    color: #ffffff;
    text-align: center;
    font-size: @biggerSize;

    a {
      display: block;
      padding: 1rem;
      color: #fff;
    }

    li {
      padding: 1rem 0;
    }
  }
}


//通用tab样式
.company-navbar {
  .mint-navbar {
    background-color: @contentBgColor;
    position: fixed;
    top: 4rem;
    width: 100%;
    max-width: 640px;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0 auto;
  }

  .mint-tab-container-wrap {
    margin-top: 4rem;
  }

  .mint-tab-item {
    color: @mainTxtColor;

    .mint-tab-item-label {
      font-size: @headerSize;
    }
  }

  .mint-tab-item.is-selected {
    border-bottom: 2px solid @importantColor;
    color: @importantColor;
    margin-bottom: -1px;
  }

  .mint-tab-item {
    padding: 1rem 0;
    max-width: 110px;
    margin: 0 auto;
  }
}

//通用列表样式
.company-list {
  padding: .05rem 1rem 0;

  &-box {
    margin-top: .5rem;

    &-row {
      flex-basis: 100%;
      display: flex;
      font-size: @smallSize;
      padding: 1rem 0;
      color: @mainTxtColor;
      margin: .5rem 0;
      border-bottom: 1px solid @lineColor;

      &-left {
        //flex: 3;
        margin: 0 1rem 0 0;
        width: 13rem;
        height: 7rem;
        overflow: hidden;

        img {
          width: 100%;
          max-height: 13rem;
        }
      }

      &-right {
        flex: 5;
        margin: 0 0 .5rem 0;
        font-size: @mainTxtSize;

        &-title {
          font-weight: bold;
          display: -webkit-box;
          /*! autoprefixer: off */
          -webkit-box-orient: vertical;
          /* autoprefixer: on */
          -webkit-line-clamp: 1;
          word-break: break-all;
          overflow: hidden;
        }

        &-content {
          margin-top: .5rem;
          font-size: @smallSize;
          color: @subTxtColor;
          display: -webkit-box;
          /*! autoprefixer: off */
          -webkit-box-orient: vertical;
          /* autoprefixer: on */
          -webkit-line-clamp: 2;
          word-break: break-all;
          overflow: hidden;
        }
      }
    }
  }
}

//通用文章详情
.company-content {
  font-size: @smallSize;
  color: #000;
  text-align: left;
  padding: 1rem;

  h1 {
    font-size: @biggerSize;
    font-weight: bold;
    text-align: center;
    margin-bottom: .5rem;
  }

  img {
    max-width: 100%;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  &-release {
    overflow: hidden;
    font-size: @smallestSize;
    color: #bababa;
    margin: 1rem 0 .8rem 0;

    &-time {
      float: left;
    }

    &-source {
      float: right;
      text-align: right;
    }
  }

  p {
    text-indent: 2em;
    margin: 0;
    padding-bottom: 0.8rem;
    line-height: 24px;
    font-size: @headerSize;

    img {
      max-width: 80%;
    }
  }
}

.empty-data {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: #8e8e8e;
}
